<?php

	namespace org\tekuna\demo\weblog\action\admin;

	use org\tekuna\framework\request\Request;
	use org\tekuna\framework\action\ActionEvent;
	
	use org\tekuna\plugin\simpletemplate\SimpleTemplateAction;
	use org\tekuna\demo\weblog\model\Article;
	
	class CreateArticleAction extends SimpleTemplateAction {
		
		protected
			$article;
		
		
		public function executeTemplate(ActionEvent $objActionEvent, Request $objRequest) {
			
			$this -> article = new Article();

			// set a new application title
			$this -> getApplicationContext() -> setAppTitle("Create Article");
		}
	}